package cate.common.table.d;

import cate.common.table.common.ParamSheet;
import cp.solution.util.str.Str;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

import java.util.ArrayList;
import java.util.List;

@NoteClass(value = "阵法")
public class GDPosition {


    @NoteField(value = "阵法默认编队的序号", detail = "一个功能会有多个编队 默认取1号编队")
    public static final byte DEFAULT_POS_NUM = 1;

    @NoteField(value = "编队1", detail = "")
    public static final byte POS_ONE = 1;

    @NoteField(value = "编队2", detail = "")
    public static final byte POS_TWO = 2;

    @NoteField(value = "编队3", detail = "")
    public static final byte POS_THREE = 3;


    @NoteClass("阵法-英雄来源")
    public static class Origin{

        @NoteField("背包")
        public static final byte BAG = 0;

        @NoteField("好友援助")
        public static final byte AID = 1;

        @NoteField("系统提供")
        public static final byte SYSTEM = 2;
    }

    @NoteClass("阵法-升级")
    public static class Dev{

        public static String POSITION_REST_COST_STR;

        public static String POSITION_POS_REST_COST_STR;

        public static int DEFAULT_POS_ATTR_TID;
    }

    public static List<Integer> SYNC_FUNC_IDS = new ArrayList<>();

    public static void initialize(ParamSheet paramSheet) {
        Dev.POSITION_REST_COST_STR = GDParamTool.getString(paramSheet, 2100, "0:1:100");
        Dev.POSITION_POS_REST_COST_STR = GDParamTool.getString(paramSheet, 2101, "0:1:100");
        Dev.DEFAULT_POS_ATTR_TID = GDParamTool.getInt(paramSheet, 2102, 1007);
        String str = GDParamTool.getString(paramSheet, 900005, "1090#4200#1080#3000#5400");
        SYNC_FUNC_IDS = Str.strArr2intList(str.split("#"));
    }

}
